package com.hhu.wangzb.server.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hhu.wangzb.common.utils.PageUtils;
import com.hhu.wangzb.common.utils.Query;

import com.hhu.wangzb.server.dao.RegionDetailDao;
import com.hhu.wangzb.common.entity.RegionDetailEntity;
import com.hhu.wangzb.server.service.RegionDetailService;


@Service("regionDetailService")
public class RegionDetailServiceImpl extends ServiceImpl<RegionDetailDao, RegionDetailEntity> implements RegionDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RegionDetailEntity> page = this.page(
                new Query<RegionDetailEntity>().getPage(params),
                new QueryWrapper<RegionDetailEntity>()
        );

        return new PageUtils(page);
    }

}